package mylab.usm.api.model.authorization;

import cn.hutool.core.util.StrUtil;
import mylab.base.constants.DbConst;
import mylab.base.model.LongIdName;
import mylab.utils.common.jackson.JacksonUtil;

public interface Owner extends LongIdName {


    //@formatter:off
    //对json字段的访问方式： 字段->'$.json属性'
    public static final String FIELD_TENANT_ID = StrUtil.format(JacksonUtil.JSON_FIELD_FORMATER, DbConst.PROPERTY_OWNER, "tenantId");
    public static final String FIELD_COMPANY_ID = StrUtil.format(JacksonUtil.JSON_FIELD_FORMATER, DbConst.PROPERTY_OWNER, "companyId");
    public static final String FIELD_DEPARTMENT_ID = StrUtil.format(JacksonUtil.JSON_FIELD_FORMATER, DbConst.PROPERTY_OWNER, "departmentId");
    public static final String FIELD_USER_ID = StrUtil.format(JacksonUtil.JSON_FIELD_FORMATER, DbConst.PROPERTY_OWNER, "userId");
    //@formatter:on

//    private Long tenantId;
//    private String tenantName;
//    private Long companyId;
//    private String companyName;
//    private Long departmentId;
//    private String departmentName;
//    private Long userId;
//    private String userName;


}
